package com.cameron.serviceedu.client;


import com.cameron.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Cameron
 */
@Component
@FeignClient("service-vod")
public interface VodClient {

    /**
     * 调用vod模块中的删除视频方法
     * 注：@PathVariable 注解必须设置value属性，不然会报错
     * @param videoId 视频id
     * @return
     */
    @DeleteMapping("/video-service/vod/del/{videoId}")
    Result deleteVideo(@PathVariable("videoId") String videoId);
}
